package com.tping.mysql.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.*;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@ToString
@TableName("tb_orders")
public class MasterSlaveOrders implements Serializable {

    @TableId
    private Integer id;

    @TableField("userId")
    private Integer userId;

    @TableField("orderDate")
    private Date orderDate;

    @TableField("orderAmount")
    private BigDecimal orderAmount;

    @TableField("productId")
    private Integer productId;

}
